concept of loops